.cashier {
  display: flex;
  flex-direction: row;
  justify-content: space-between;



  .p-layout-pagination {
    flex-shrink: 1;
  }

  .ant-tabs-content {
    height: 100% !important;
  }

  img {
    cursor: pointer;
  }

  .cashier-left {
    background-color: #f2f2f2;
    flex: 1;
    padding: 20px;
    margin: 0;

    .ant-tabs-nav-list {
      height: 100% !important;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .ant-tabs-nav-more {
      display: none;
    }
  }

  .cashier-right {
    width: 400px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: -16px;

    .member-box {
      padding: 0 15px;
      width: 340px;
      min-height: 100px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid;
      border-radius: 6px;
      cursor: pointer;

      &>div {
        display: flex;
        align-items: center;
        color: #666666;
        font-size: 18px;

        .ant-image {
          margin-right: 20px;
        }
      }
    }

    .member-box-has {
      padding: 0 15px;
      width: 340px;
      min-height: 120px;
      display: flex;
      align-items: center;
      border: 1px solid;
      border-radius: 6px;
      position: relative;
      background-repeat: no-repeat;
      background: url(../../../assets/images/memberBackground.png) 340px 100px;
      border: 1px solid transparent;

      &>div:first-child {
        display: flex;
        align-items: center;
        font-size: 14px;

        .member-information {
          margin-left: 15px;
          display: flex;
          flex-direction: column;
          row-gap: 10px;

          &>div:first-child {
            display: flex;

            &>:last-child {
              margin-left: 10px;
              font-size: 18px;

              span {
                margin-left: 5px;
              }
            }
          }

          &>div:nth-child(2) {
            display: flex;

            &>div:first-child {
              margin-right: 20px;
            }
          }
        }
      }

      .close-icon {
        position: absolute;
        top: 10px;
        right: 10px;
      }
    }
  }

  .rooms {
    display: flex;
    flex-wrap: wrap;

    .tab-item {
      margin: 10px;

      .tab-item-name {
        .tips {
          display: inline-block;
          width: 20px;
          height: 20px;
          font-size: 12px;
          line-height: 20px;
          text-align: center;
          border-radius: 50%;
          background-color: #000;
          color: #fff;
          cursor: pointer;
          margin-left: 10px;

          h3 {
            color: #fff;
          }
        }
      }
    }
  }

  .tabs-box,
  .tabs-right-box {

    // display: flex;
    // flex-wrap: wrap;
    // column-gap: 20px;
    // row-gap: 20px;
    .ant-row-center {
      margin: unset !important;
      width: 340px !important;

      .ant-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
      }
    }

    padding: 20px 20px 20px 0;


    .tab-item {
      border: 1px solid #b7b7b7;
      border-radius: 4px;
      padding: 10px 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      width: 340px;
      min-height: 120px;

      .tab-item-name {
        color: #222;
        font-size: 18px;
        font-weight: 600;
        text-overflow: -o-ellipsis-lastline;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

      }

      .tab-item-commodity-sku {
        display: flex;
        justify-content: space-between;

        &>div:first-child {
          color: #888888;
          // width: 60%;
        }
      }

      .tab-item-bottom {
        display: flex;
        justify-content: space-between;

        &>div:first-child {
          display: flex;
          align-items: flex-end;

          .symbol {
            color: #ef3800;
            line-height: 14px;
          }

          .price {
            color: #ef3800;
            font-size: 18px;
            line-height: 18px;
          }
        }

        &>div:last-child {
          display: flex;

          .ant-input-number {
            height: 22px;

            .ant-input-number-input-wrap {
              height: 22px;

              input {
                height: 22px;
              }
            }
          }
        }
      }
    }
  }

  .tabs-box {
    overflow-y: auto;
  }

  .tabs-right-box {
    height: 100%;
    margin-bottom: 140px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    flex-wrap: nowrap;
    padding-bottom: 100px;
    position: relative;

    .Beautician {
      width: 150px;
      position: absolute;
      right: 10px;
      bottom: 10px;
    }

    .tab-item.commodity {
      min-height: unset;
    }

    .tab-item.service {
      min-height: 120px;
    }

    .commodity {
      .tab-item-commodity-sku {
        margin: 7px 0;
      }
    }

    .title {
      margin: 20px 0;
      color: #222;
      font-size: 18px;
      padding-left: 10px;
      border-left: 5px solid #2A5EFF;
      height: 18px;
      line-height: 18px;
    }
  }

  .collection-box {
    position: fixed;
    bottom: 10px;
    right: 15px;
    width: 400px;
    box-shadow: 0px -5px 7px rgba(0, 0, 0, 0.16);
    padding: 15px;
    border-radius: 6px;
    background-color: #fff;

    .discount-num {
      font-size: 14px;
      color: #EF3800;
      margin-left: 5px;
    }

    .button {
      width: 365px;
      height: 62px;
      background: linear-gradient(315deg, #F52A2A 0%, #FF8A34 100%);
      opacity: 1;
      border-radius: 10px;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20px;
      margin-top: 20px;
      cursor: pointer;
      user-select: none;
    }

    .top {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: #222;

      .count {
        line-height: 12px;

        span {
          font-size: 16px;
          color: #EF3800;
          margin: 0 5px;
          line-height: 14px;
        }
      }

      .price {
        line-height: 12px;

        &>div:first-child {
          color: #EF3800;
        }

        &>div:last-child {
          color: #EF3800;
          line-height: 12px;
        }

        .price-num {
          font-size: 16px;
          color: #EF3800;
          line-height: 14px;
        }
      }

      .integral {
        line-height: 12px;

        &>div {
          color: #EF3800;
          font-size: 16px;
          line-height: 14px;
        }
      }

      &>div {
        display: flex;
        align-items: flex-end;
      }
    }
  }

  .ant-tabs {
    height: 100%;
  }

  .ant-tabs-tab,
  .ant-tabs-tab-active {
    background-color: #2A5EFF !important;
    width: 110px;
    padding: 0;
    display: flex;
    justify-content: center;
    color: #fff;
    border-radius: 8px !important;
    margin-right: 15px !important;
  }

  .ant-tabs-tab-active {
    background-color: #fff !important;
    color: #000 !important;
    border: none !important;
    border-right: 15px solid #fff !important;
    margin-right: 0 !important;
    width: 100% !important;
    border-radius: 8px 0 0 8px !important;
  }
}

.discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;

  &:last-child {
    margin-bottom: 0;
  }
}

.dialog-footer-button {
  margin: 0 auto;
  width: 365px;
  height: 50px;
  background: linear-gradient(315deg, #F52A2A 0%, #FF8A34 100%);
  opacity: 1;
  border-radius: 10px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}

.collection-box {
  .collection-title {
    font-size: 18px;
    font-weight: 600;
    padding-left: 10px;
    border-left: 6px solid #2A5EFF;
    height: 18px;
    line-height: 18px;
    margin-bottom: 20px;
  }

  .collection-information-content {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;

    .collection-information-content-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }

  .collection-pay-way-content {
    .ant-radio-group {
      display: flex;
      justify-content: center;
      column-gap: 20px;

      .ant-radio-button-wrapper {
        min-width: 180px;
        display: flex;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid #d9d9d9 !important;

        &::before {
          display: none;
        }

        .anticon {
          margin-right: 10px;
        }
      }
    }
  }
}

.cashier-modal-input-box {
  margin-bottom: 8px;

  .ant-input {
    border-radius: 8px !important;
  }

  .custom-input::placeholder {
    color: red;
    /* 设置第一种文字颜色 */
  }

  .custom-input::placeholder::before {
    content: "第二种文字颜色";
    /* 设置第二种文字颜色 */
    color: blue;
  }
}

.cashier-modal-input-box:last-child {
  margin-bottom: 0;
}

.settlement-box {
  width: 300px;
  margin: 0 auto;
  row-gap: 15px;
  display: flex;
  flex-direction: column;

  &>div {
    display: flex;
    justify-content: space-between;
    width: 100%;

    &:first-child {
      flex-direction: column;
      width: 100%;

      &>div {
        display: flex;
        justify-content: space-between;
        color: #222;
        font-size: 18px;
        font-weight: 600;
      }
    }

    &:last-child {
      font-size: 22px;
      color: #EF3800;
      font-weight: 600;

      &>div:first-child {
        color: #222;
      }
    }
  }
}

.amount-price {
  color: #EF3800;
  font-size: 22px;
  width: 100%;
  text-align: center;
  margin: 0 auto 50px;
}

.finish-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;

  &>div:nth-child(2) {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
  }

  &>div:last-child {
    color: #666666;
    font-size: 16px;
  }
}

.completion-button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .dialog-footer-button {
    margin: 0 auto;
    width: 280px;
    height: 50px;
    background: linear-gradient(315deg, #F52A2A 0%, #FF8A34 100%);
    opacity: 1;
    border-radius: 10px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    user-select: none;

    &:first-child {
      background: #2A5EFF;
    }
  }
}

.third-party-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 15px;
  margin-bottom: 100px;
}

.cashier-order-dialog-box {
  margin-bottom: 20px;

  .content {
    font-size: 16px;
    color: #222;
    padding-bottom: 20px;

    &:last-child {
      border-bottom: none;
      margin-bottom: -20px;
      padding-bottom: 0;
    }

    .title {
      font-size: 18px;
      font-weight: 600;
      padding-left: 10px;
      border-left: 6px solid #2A5EFF;
      height: 18px;
      line-height: 18px;
      margin-bottom: 20px;
    }

    .cintainer {
      display: flex;
      flex-direction: column;
      row-gap: 20px;
      max-height: 240px;
      overflow: auto;
      padding: 0 20px;
      border-bottom: 1px solid #EAEAEA;

      &:last-child {
        border-bottom: none;
      }

      .item {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        border-bottom: 1px solid #EAEAEA;
        padding-bottom: 20px;

        &:last-child {
          border-bottom: none;
          padding-bottom: 0;
        }

        .top {
          display: flex;
          justify-content: space-between;
          margin-bottom: 20px;

          .sku {
            font-size: 14px;
            color: #666666;
            margin-top: 10px;
          }

          .total {
            font-weight: 600;
          }
        }

        .bottom {
          display: flex;
          justify-content: flex-end;
          align-items: center;

          .chargeback-button,
          .chargeback-button-active {
            padding: 10px 20px;
            border: 1px solid #eaeaea;
            border-radius: 6px;
            cursor: pointer;
            user-select: none;
          }

          .chargeback-button-active {
            background-color: #1890ff;
            border-color: #1890ff;
            color: #fff;
          }

          .ant-image {
            cursor: pointer;
          }

          .ant-input-number {
            height: 22px;

            .ant-input-number-input-wrap {
              height: 22px;

              input {
                height: 22px;
              }
            }
          }
        }
      }
    }
  }
}

.cashier-order-dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .total {
    font-size: 16px;
    font-weight: 600;
    min-width: 400px;
    text-align: start;
  }

  .button-group {
    display: flex;
    justify-content: space-between;
    flex-grow: 0.1;

    .button {
      width: 160px;
      height: 60px;
      border-radius: 10px;
      line-height: 60px;
      font-size: 18px;
      cursor: pointer;
      text-align: center;
    }

    .cancel {
      background-color: #F4F4F4;
    }

    .submit {
      background: linear-gradient(315deg, #F52A2A 0%, #FF8A34 100%);
      color: #fff;
    }
  }
}

.ant-spin-nested-loading {
  height: 100% !important;

  .ant-spin-container {
    height: 100% !important;
  }
}

.return-price-dialog {
  .amount {
    display: flex;
    justify-content: center;
    font-size: 22px;
    color: #EF3800;
  }

  .way {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin-top: 20px;

    &>div {
      display: flex;
      justify-content: space-between;
      align-items: center;

      &>span {
        width: 55px;
        font-size: 18px;
        font-weight: 600;
      }

      .ant-input-number {
        width: 380px;
        height: 50px;
        border-radius: 10px;

        .ant-input-number-input-wrap {
          height: 50px;

          input {
            height: 50px;
            font-size: 18px;
          }
        }
      }

      .ant-btn {
        font-size: 18px;
        line-height: 18px;
      }
    }
  }
}

.tab-item {
  border: 1px solid #b7b7b7;
  border-radius: 4px;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  width: 360px;
  min-height: 120px;

  .tab-item-name {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

  }

  .tab-item-commodity-sku {
    display: flex;
    justify-content: space-between;

    &>div:first-child {
      color: #888888;
      // width: 60%;
    }
  }

  .tab-item-bottom {
    display: flex;
    justify-content: space-between;

    &>div:first-child {
      display: flex;
      align-items: flex-end;

      .symbol {
        color: #ef3800;
        line-height: 14px;
      }

      .price {
        color: #ef3800;
        font-size: 18px;
        line-height: 18px;
      }
    }

    &>div:last-child {
      display: flex;

      .ant-input-number {
        height: 22px;

        .ant-input-number-input-wrap {
          height: 22px;

          input {
            height: 22px;
          }
        }
      }
    }
  }
}